package com.t18;

import java.io.File;

import static com.Print.print;
import static com.Print.printnb;

/**
 * Created by xuyiwei on 2018/8/27.
 */
public class DirectoryDemo {
    public static void main(String[] args) {
        PPrint.pprint(Directory.walk(".").dirs);
        print("-----------------------------------------------");
        for(File file:Directory.local(".","T.*")){
            print(file);
        }
        print("-----------------------------------------------");
        for(File file:Directory.walk(".","T.*\\.java")){
            print(file);
        }
        print("-----------------------------------------------");
        for(File file:Directory.walk(".",".*[Zz].*\\.class")){
            print(file);
        }
    }
    /**
     * [
     ./.idea
     ./.idea/dictionaries
     ./.idea/inspectionProfiles
     ./out
     ./out/production
     ./out/production/jdk
     ./out/production/jdk/com
     ./out/production/jdk/com/jdk18
     ./out/production/jdk/com/jdk18/digui
     ./out/production/jdk/com/jdk18/inter
     ./out/production/jdk/com/jdk18/jdk8new
     ./out/production/jdk/com/jdk18/lambda
     ./out/production/jdk/com/jdk18/stream
     ./out/production/jdk/com/jdk18/string
     ./out/production/jdk/com/t10
     ./out/production/jdk/com/t10/e6
     ./out/production/jdk/com/t10/e6/e61
     ./out/production/jdk/com/t10/e6/e62
     ./out/production/jdk/com/t10/e6/e63
     ./out/production/jdk/com/t11
     ./out/production/jdk/com/t11/controller
     ./out/production/jdk/com/t12
     ./out/production/jdk/com/t13
     ./out/production/jdk/com/t14
     ./out/production/jdk/com/t14/factory
     ./out/production/jdk/com/t16
     ./out/production/jdk/com/t17
     ./out/production/jdk/com/t18
     ./out/production/jdk/com/t2
     ./out/production/jdk/com/t3
     ./out/production/jdk/com/t4
     ./out/production/jdk/com/t5
     ./out/production/jdk/com/t6
     ./out/production/jdk/com/t6/pa1
     ./out/production/jdk/com/t7
     ./out/production/jdk/com/t8
     ./out/production/jdk/com/t8/m3
     ./out/production/jdk/com/t9
     ./out/production/jdk/com/t9/music4
     ./out/production/jdk/com/t9/music5
     ./out/production/jdk/generated
     ./out/production/jdk/net
     ./out/production/jdk/net/mindview
     ./out/production/jdk/net/mindview/atunit
     ./out/production/jdk/net/mindview/simple
     ./out/production/jdk/net/mindview/util
     ./out/production/jdk/typeinfo
     ./out/production/jdk/typeinfo/factory
     ./out/production/jdk/typeinfo/interfacea
     ./out/production/jdk/typeinfo/packageaccess
     ./out/production/jdk/typeinfo/pets
     ./out/production/jdk/typeinfo/toys
     ./src
     ./src/com
     ./src/com/jdk18
     ./src/com/jdk18/digui
     ./src/com/jdk18/inter
     ./src/com/jdk18/interface
     ./src/com/jdk18/jdk8new
     ./src/com/jdk18/lambda
     ./src/com/jdk18/stream
     ./src/com/jdk18/string
     ./src/com/t10
     ./src/com/t10/e6
     ./src/com/t10/e6/e61
     ./src/com/t10/e6/e62
     ./src/com/t10/e6/e63
     ./src/com/t11
     ./src/com/t11/controller
     ./src/com/t12
     ./src/com/t13
     ./src/com/t14
     ./src/com/t14/factory
     ./src/com/t16
     ./src/com/t17
     ./src/com/t18
     ./src/com/t2
     ./src/com/t3
     ./src/com/t4
     ./src/com/t5
     ./src/com/t6
     ./src/com/t6/pa1
     ./src/com/t7
     ./src/com/t8
     ./src/com/t8/m3
     ./src/com/t9
     ./src/com/t9/music4
     ./src/com/t9/music5
     ./src/net
     ./src/net/mindview
     ./src/net/mindview/atunit
     ./src/net/mindview/simple
     ./src/net/mindview/util
     ./src/typeinfo
     ./src/typeinfo/factory
     ./src/typeinfo/interfacea
     ./src/typeinfo/packageaccess
     ./src/typeinfo/pets
     ./src/typeinfo/toys
     ]
     -----------------------------------------------
     -----------------------------------------------
     ./src/com/jdk18/digui/TreeList.java
     ./src/com/t10/TestParcel.java
     ./src/com/t13/Turtle.java
     ./src/com/t14/ToyTest.java
     ./src/com/t17/Test.java
     ./src/com/t17/Tester.java
     ./src/com/t17/TestParam.java
     ./src/com/t17/ToDoList.java
     ./src/com/t17/TypesForSets.java
     ./src/com/t2/T2_11_09.java
     ./src/com/t2/T2_11_2.java
     ./src/com/t3/T3_17_1.java
     ./src/com/t3/T3_4_1.java
     ./src/com/t3/T3_4_3.java
     ./src/com/t3/T3_4_4.java
     ./src/com/t3/T3_5_1.java
     ./src/com/t3/T3_7_7.java
     ./src/com/t3/T_3_8_1.java
     ./src/com/t4/T4_3_1.java
     ./src/com/t4/T4_3_2.java
     ./src/com/t4/T4_8_1.java
     ./src/com/t4/T4_8_9.java
     ./src/com/t5/T5_7_1.java
     ./src/com/t5/T5_7_17.java
     ./src/com/t5/T5_8_1.java
     ./src/com/t5/T_5_1.java
     ./src/com/t5/T_5_2.java
     ./src/com/t5/T_5_4.java
     ./src/com/t5/T_5_4_10.java
     ./src/com/t5/T_5_4_1_9.java
     ./src/com/t5/T_5_7_14.java
     ./src/com/t5/TerminationCondition.java
     ./src/com/t8/Transmogrify.java
     ./src/net/mindview/atunit/Test.java
     ./src/net/mindview/atunit/TestObjectCleanup.java
     ./src/net/mindview/atunit/TestObjectCreate.java
     ./src/net/mindview/atunit/TestProperty.java
     ./src/net/mindview/util/TaskItem.java
     ./src/net/mindview/util/TaskManager.java
     ./src/net/mindview/util/TextFile.java
     ./src/net/mindview/util/ThreeTuple.java
     ./src/net/mindview/util/Tuple.java
     ./src/net/mindview/util/TwoTuple.java
     ./src/net/mindview/util/TypeCounter.java
     ./src/typeinfo/toys/ToyTest.java
     -----------------------------------------------
     ./out/production/jdk/com/t14/ClassInitialization.class
     ./out/production/jdk/com/t17/Synchronization.class
     ./out/production/jdk/com/t5/OrderOfInitialization.class
     ./out/production/jdk/com/t5/StaticInitialization.class
     ./out/production/jdk/com/t8/E14_SharedRodentInitialization.class
     ./out/production/jdk/com/t9/E03_Initialization.class
     ./out/production/jdk/com/t9/shaizi.class
     ./out/production/jdk/com/t9/shaiziFactory.class
     ./out/production/jdk/typeinfo/ClassInitialization.class
     */
}
